package cn.com.huzo.model.entities.purchase;

import huzofw.model.entities.BaseEntity;
import java.io.Serializable;
import org.apache.commons.lang3.builder.EqualsBuilder;
import org.apache.commons.lang3.builder.ToStringBuilder;

/**
 * 非材料花费主记录实体类
 * 
 * @author 吴旭
 */
public class NonMaterialCostHeaderEntity extends BaseEntity implements Serializable {

    private static final long serialVersionUID = 704479592997506389L;
    private Long HeaderId;
    private Long SupplierId;        // 供应商ID
    private String SupplierName;
    private String YearOfBill;
    private String MonthOfBill;
    private String Description;     // 备注

    public Long getHeaderId() {
        return HeaderId;
    }

    public void setHeaderId(Long HeaderId) {
        this.HeaderId = HeaderId;
    }

    public Long getSupplierId() {
        return SupplierId;
    }

    public void setSupplierId(Long SupplierId) {
        this.SupplierId = SupplierId;
    }

    public String getSupplierName() {
        return SupplierName;
    }

    public void setSupplierName(String SupplierName) {
        this.SupplierName = SupplierName;
    }

    public String getYearOfBill() {
        return YearOfBill;
    }

    public void setYearOfBill(String YearOfBill) {
        this.YearOfBill = YearOfBill;
    }

    public String getMonthOfBill() {
        return MonthOfBill;
    }

    public void setMonthOfBill(String MonthOfBill) {
        this.MonthOfBill = MonthOfBill;
    }

    public String getDescription() {
        return Description;
    }

    public void setDescription(String Description) {
        this.Description = Description;
    }

    /**
     * {@inheritDoc}
     */
    @Override
    public boolean equals(Object o) {
        if (this == o) {
            return true;
        }
        if (!(o instanceof NonMaterialCostHeaderEntity)) {
            return false;
        }

        final NonMaterialCostHeaderEntity that = (NonMaterialCostHeaderEntity) o;

        return new EqualsBuilder()
                .append(this.getHeaderId(), that.getHeaderId())
                .isEquals();
    }

    /**
     * {@inheritDoc}
     */
    @Override
    public int hashCode() {
        int result = 17;
        result = 31 * result + getHeaderId().hashCode();

        return result;
    }

    /**
     * {@inheritDoc}
     */
    @Override
    public String toString() {
        return ToStringBuilder.reflectionToString(this);
    }
}
